/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package podologia.beansDB;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author Hernan
 */
@Embeddable
public class FdigitalxatencionPK implements Serializable {
    @Column(name = "idAtencion", nullable = false)
    private int idAtencion;
    @Column(name = "idFDigital", nullable = false)
    private int idFDigital;

    public FdigitalxatencionPK() {
    }

    public FdigitalxatencionPK(int idAtencion, int idFDigital) {
        this.idAtencion = idAtencion;
        this.idFDigital = idFDigital;
    }

    public int getIdAtencion() {
        return idAtencion;
    }

    public void setIdAtencion(int idAtencion) {
        this.idAtencion = idAtencion;
    }

    public int getIdFDigital() {
        return idFDigital;
    }

    public void setIdFDigital(int idFDigital) {
        this.idFDigital = idFDigital;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idAtencion;
        hash += (int) idFDigital;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FdigitalxatencionPK)) {
            return false;
        }
        FdigitalxatencionPK other = (FdigitalxatencionPK) object;
        if (this.idAtencion != other.idAtencion) {
            return false;
        }
        if (this.idFDigital != other.idFDigital) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "podologia.beansDB.FdigitalxatencionPK[idAtencion=" + idAtencion + ", idFDigital=" + idFDigital + "]";
    }

}
